import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

import AddProduct from "../pages/product/AddProduct"
import ProductList from "../pages/product/ProductList"

import AddCategory from "../pages/category/AddCategory"
import CategoryList from "../pages/category/CategoryList"

import AddNav from "../pages/nav/AddNav"


import Login from "../pages/login/login.vue"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: ProductList
    },
    {
      path:"/addproduct",
      component:AddProduct
    },
    {
      path:"/productlist",
      component:ProductList
    },
    {
      path:"/addcategory",
      component:AddCategory
    },
    {
      path:"/login",
      component:Login,
      meta:{
          menu:false
      }
    },
    {
      path:"/categorylist",
      component:CategoryList
    },
    {
      path:"/addnav",
      component:AddNav
    },
  ]
})
